package com.song.study.springcloudconsumer.service;

import com.song.study.springcloudconsumer.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "springcloud-service")
public interface OrderApi {

    @GetMapping(value = "/order/get/{params}")
    OrderInfo getOrderInfo(@PathVariable("params") String orderId);
}
